<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>js拖放和弹出层模拟</title>
  <link rel="stylesheet" href="../../css/common.css">
  <link rel="stylesheet" href="index.css">
</head>

<body>
  <div class="container">
    <!-- draggable="true"属性是启用元素拖放功能 -->
    <div id="dnd" draggable="true">拖</div>


    <button id="btnPopup">弹出信息框</button>

  </div>


  <!-- 模拟弹出效果 -->
  <div id="maskBox">
    <div id="contentBox">
      弹出信息
    </div>
  </div>



  <script src="index.js"></script>
</body>

</html>